package com.yunhe.spring;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import com.yunhe.biz.IItemBiz;
import com.yunhe.entity.Item;

public class Test {

	public static void main(String[] args) {
		ApplicationContext ac = new ClassPathXmlApplicationContext("applicationContext.xml");
		/*TestBean tb = (TestBean)ac.getBean("tb");
		tb.say();
		TestBean tb1 = (TestBean)ac.getBean("tb1");
		tb1.say();
		TestBean tb2 = (TestBean)ac.getBean("tb2");
		tb2.say();*/
		IItemBiz iib = (IItemBiz)ac.getBean("itemBiz");
		Item item = new Item();
		System.out.println(iib.searchItems(item).size());
		System.out.println(iib.searchItemCount());
		System.out.println(iib.searchItem(9).getSubject().getVs_title());

	}

}